package se.statifyme.server.store;

import java.util.Collection;

import se.statifyme.server.entities.OwnedItem;
import se.statifyme.shared.IllegalOperationException;

public interface OwnedItemStore<E extends OwnedItem> {

	E get(String id, String ownerId) throws IllegalOperationException;
	
	Collection<E> getAll(String ownerId);
	
	void save(E item, String ownerId) throws IllegalOperationException;
	
	void delete(String id, String ownerId) throws IllegalOperationException;
	
}
